import i18n from '../../../i18n/i18n'
export const tableOption = {
  border: true,
  stripe: true,
  menuAlign: 'center',
  menuWidth: 200,
  align: 'center',
  refreshBtn: true,
  searchSize: 'mini',
  addBtn: false,
  delBtn: false,
  editBtn: false,
  viewBtn: false,
  searchBtn: false,
  props: {
    label: 'label',
    value: 'value'
  },
  column: [{
    label: i18n.t('distribUserWallet.distributorNickname'),
    prop: 'nickName',
    slot: true
  }, {
    label: i18n.t('distributionMsg.distriTelPhone'),
    prop: 'userMobile',
    searchLabelWidth: i18n.t('language') === 'language' ? 180 : 120,
    slot: true,
    search: true
  }, {
    label: i18n.t('distributionMsg.serialNumber'),
    prop: 'merchantOrderId',
    searchLabelWidth: i18n.t('language') === 'language' ? 120 : 80,
    search: true
  }, {
    label: i18n.t('home.amount'),
    prop: 'amount',
    sortable: true

  }, {
    label: i18n.t('distributionMsg.serviceFee'),
    prop: 'fee',
    sortable: true,
    dicData: [
      {
        label: '0.0',
        value: ''
      }
    ]
  }, {
    label: i18n.t('distributionMsg.withdrawalTime'),
    prop: 'createTime',
    sortable: true
  }, {
    width: 150,
    label: i18n.t('distributionMsg.withdrawalType'),
    prop: 'type',
    dicData: [
      {
        label: i18n.t('distributionMsg.manualWithdrawal'),
        value: 0
      }, {
        label: i18n.t('distributionMsg.automaticWithdrawal'),
        value: 1
      }
    ]
  }, {
    width: 150,
    label: i18n.t('distributionMsg.withdrawalStatus'),
    prop: 'state',
    searchLabelWidth: i18n.t('language') === 'language' ? 160 : 80,
    search: true,
    type: 'select',
    dicData: [
      // {
      //   label: i18n.t('distributionMsg.withdrawalFailed'),
      //   value: -1
      // },
      {
        label: i18n.t('distributionMsg.applying'),
        value: 0
      }, {
        label: i18n.t('distributionMsg.withdrawalSuccessful'),
        value: 1
      }
    ]
  }, {
    label: i18n.t('home.updateTime'),
    prop: 'updateTime',
    sortable: true,
    dicData: [
      {
        label: i18n.t('distribUserWallet.nothing'),
        value: ''
      }
    ]
  }]
}
